package com.concurrent.water.machine.util;

import java.util.concurrent.TimeUnit;

public class SimpleSleep {
    public static void sleep(TimeUnit timeUnit, long value) {
        try {
            Thread.sleep(timeUnit.toMillis(value));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
